package com.zxx.pattern.strategyPattern.strategy;

/**
 * @author zxx on 2021/1/7
 */
public class DuckRubber extends Duck {

    public DuckRubber() {
        System.out.println("这是一只橡皮鸭");
        super.flyBehavior = new FlyNoWay();
        super.quackBehavior=new QuackZhiZhi();
    }
}
